package com.gt.admin.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 城市
 */
@TableName("sys_city")
@Data
@ApiModel(value = "城市")
public class City {
    private static final long serialVersionUID = 1L;

    /** 城市id */
    @TableId
    private Long id;

    /** 名称 */
    @ApiModelProperty(value = "名称")
    private String name;

    /** 父级标识 */
    @ApiModelProperty(value = "父级标识")
    private Long parentId;

    /** 区域编码 */
    @ApiModelProperty(value = "区域编码")
    private String regionCode;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    private Long topIndex;

    /** 删除标志 */
    @ApiModelProperty(value = "删除标志")
    private Character delFlag;

    /** 子节点数据 */
    @TableField(exist = false)
    @ApiModelProperty(value = "子节点")
    private List<City> cityList;
}
